# coding: utf-8
from . import db, BaseModel


class Resource(BaseModel):
    __tablename__ = 'resource'

    auto_id = db.Column(db.Integer, primary_key=True, info='自增主键')
    resource_id = db.Column(db.String(20), info='资源ID')
    user_id = db.Column(db.String(20), info='用户ID')
    location = db.Column(db.String(500), info='资源地址')
    resource_type = db.Column(db.Integer, info='资源类型')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建时间')
    is_deleted = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
